<form name="" action="" method="post">
<?=$sagolovok;?>
<?=$query;?>
</form>